package com.qiang.manager.factory;

import com.qiang.manager.controller.IstudentController;
import com.qiang.manager.controller.IteacherController;
import com.qiang.manager.controller.StudentControllerImp;
import com.qiang.manager.controller.TeacherControllerImp;
import com.qiang.manager.dao.IstudentDao;
import com.qiang.manager.dao.IteacherDao;
import com.qiang.manager.dao.StudentDaoImp;
import com.qiang.manager.dao.TeacherDaoImp;
import com.qiang.manager.service.IstudentSerice;
import com.qiang.manager.service.IteacherService;
import com.qiang.manager.service.StudentServiceImp;
import com.qiang.manager.service.TeacherServiceImp;

public class Factory {
    public static IstudentSerice getStudentService(){
        return new StudentServiceImp();
    }

    public static IstudentDao getStudentDao() {
        return new StudentDaoImp();
    }

    public static IstudentController getStudentController() {
        return new StudentControllerImp();
    }

    public static IteacherDao getTeacherDao() {
        return new TeacherDaoImp();
    }

    public static IteacherService getTeacherService() {
        return new TeacherServiceImp();
    }

    public static IteacherController getTeacherController() {
        return new TeacherControllerImp();
    }
}
